﻿<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Web2 Comment API</title>
	<link rel="stylesheet" type="text/css" href="style/main.css" />
	<style>
		body {
			font-size: 80%;
			font-family: Georgia, Serif;
		}
		h3 {
			color: #721329;
			margin-top: 20px;
		}
	</style>
</head>
<body>

<div id="wrapper_outer">

	<div id="wrapper">
    
    	<div id="header">
            <div id="api_title">
                <h1>Web2.0 Webservice - Comment</h1>
            </div> <!-- end of site_title -->            
		</div>   <!-- end of header -->
    
    
        <div id="main_wrapper">
            <div id="main">
	            <hr style="border: thin dotted #C0C0C0;"/>
            	
	            <h3>addComment</h3>
	            <h4>http://cs4380.cs.cityu.edu.hk/51158405/blog/api/addComment.py</h4>
	            <p>Add a comment to a post.</p>
	            <br/>
	            <p>Potential URL parameters:</p>
	            <ul>
	            	<li>
	            		<strong>id</strong> - The ID of the post to add a comment.
	            	</li>
	            	<li>
	            		<strong>name</strong>[optional] - Name of the comment user.
	            	</li>
	            	<li>
	            		<strong>content</strong>[optional] - Content of the comment.
	            	</li>
	            </ul>
	            <hr style="border: thin dotted #C0C0C0;"/>

				<h3>getComment</h3>
				<h4>http://cs4380.cs.cityu.edu.hk/51158405/blog/api/getComment.py</h4>
				<p>Get comments of a post.</p>
				<br />
				<p>Potential URL parameters:</p>
				<ul>
					<li>
						<strong>id</strong> - the ID of a blog post that comment to be retrieved.
					</li>
					<li>
						<strong>type</strong>[optional] - the return format. One of 'xml', 'json'.
					</li>
				</ul>
				<hr style="border: thin dotted #C0C0C0;"/>
	            
				<h3>countComment</h3>
				<h4>http://cs4380.cs.cityu.edu.hk/51158405/blog/api/countComment.py</h4>
				<p>Return number of comment of a post.</p>
				<br />
				<p>Potential URL parameters:</p>
				<ul>
					<li>
						<strong>id</strong> - the ID of a blog post.
					</li>
				</ul>
				<hr style="border: thin dotted #C0C0C0;"/>
	            
				<h3>deleteComment</h3>
				<h4>http://cs4380.cs.cityu.edu.hk/51158405/blog/api/deleteComment.py</h4>
				<p>Delete a comment.</p>
				<br />
				<p>Potential URL parameters:</p>
				<ul>
					<li>
						<strong>id</strong> - the ID of a comment.
					</li>
				</ul>
				<hr style="border: thin dotted #C0C0C0;"/>

				<h3>getUsername</h3>
				<h4>http://cs4380.cs.cityu.edu.hk/51158405/blog/api/getUsername.py</h4>
				<p>Return a blogger's full name.</p>
				<br />
				<p>Potential URL parameters:</p>
				<ul>
					<li>
						<strong>id</strong> - the ID of the blogger
					</li>
				</ul>
				<hr style="border: thin dotted #C0C0C0;"/>
                	                    	
           </div> <!-- end of main -->
        	       	
        </div> <!-- end of main wrapper -->
    </div> <!-- end of wrapper -->
    
    <div id="footer">
    	
			<p>Copyright &copy; XIE Ting</p>
			<p id="credit">
			<a href="http://www.iwebsitetemplate.com/">Website Template</a> By <a href="http://www.templatemo.com/">Templatemo.com</a>
			</p>              
        
        <div class="cleaner"></div>
    </div>
         
</div>

</body>
</html>